<?php

/**
 * Class OrderEnum
 */
class OrderEnum {

    #订单状态
    const STATUS_NO_LOCKING    =  10;       //下单/未锁货
    const STATUS_NO_PAY        =  20;       //未支付/已锁货
    const STATUS_PAYED         =  30;       //已支付/待提货
    const STATUS_TAKE_GOODS    =  40;       //已提货/代开票
    const STATUS_SUCCESS       =  50;       //已收货/交易成功
    const STATUS_CANCEL        =  60;       //取消订单/交易失败
    const STATUS_DELETE        =  70;       //删除订单



    #发票类型
    const INVOICE_TYPE_PAPER    =   1;
    const INVOICE_TYPE_ELECT    =   2;

    public static $order_status  =   [
        self::STATUS_NO_LOCKING => '已下单(未锁货)',
        self::STATUS_NO_PAY     => '未支付(已锁货)',
        self::STATUS_PAYED      => '已支付(待提货)',
        self::STATUS_TAKE_GOODS => '已提货(代开票)',
        self::STATUS_SUCCESS    => '已开发票(交易成功)',
        self::STATUS_CANCEL     => '已取消(交易失败)',
        self::STATUS_DELETE     => '已删除',
    ];

    public static $invoice  =   [
        self::INVOICE_TYPE_PAPER       =>   [
            'invoice_id'    =>  1,
            'invoice_name'  =>  '纸质发票'
        ],
        self::INVOICE_TYPE_ELECT       =>   [
            'invoice_id'    =>  2,
            'invoice_name'  =>  '电子发票'
        ],
    ];



}